package net.awpspace.mobile.management.contact;

import javax.microedition.midlet.MIDlet;

import com.sun.lwuit.Container;
import com.sun.lwuit.Label;
import com.sun.lwuit.TextField;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.layouts.BoxLayout;

import net.awpspace.mobile.form.BaseForm;

public class ContactDetails extends BaseForm{

	private Contact data;
	
	public ContactDetails(MIDlet app, BaseForm parent, Contact c) {
		super(app, parent);
		setTitle("Danh bạ chi tiết");
		// TODO Auto-generated constructor stub
		this.data = c;
		Container container = new Container(new BoxLayout(BoxLayout.Y_AXIS));
		container.addComponent(new Label("Họ và tên:"));
		TextField hovaten = new TextField(data.getTen());
		hovaten.setRows(1);
		container.addComponent(hovaten);
		container.addComponent(new Label("Số điện thoại :"));
		TextField sdt = new TextField(data.getSdt());
		container.addComponent(sdt);
		container.addComponent(new Label("Email :"));
		TextField email = new TextField(data.getEmail());
		container.addComponent(email);
		sdt.setRows(1);
		container.addComponent(new Label("Địa chỉ:"));
		TextField diachi = new TextField(data.getDiachi());
		diachi.setRows(2);
		container.addComponent(diachi);
		addComponent(container);
	}

	protected void processCommand(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}

}
